package com.biz.primus.ms.coupon.dao.ro;

import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import com.biz.primus.model.coupon.enums.CouponAcquireApproach;
import com.biz.primus.model.coupon.enums.CouponState;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * 优惠券RO
 *
 * @author david-liu
 */
@Ro(key = "cpn:coupon")
@Getter
@Setter
public class CouponRo extends BaseRedisObject<Long> {
    private static final long serialVersionUID = -3699284000405781906L;

    // 优惠券归属的用户的ID
    private Long userId;

    // 优惠券类型ID
    private Long couponTypeId;

    // 优惠券状态
    private CouponState couponState;

    // 优惠券是否已经被使用
    private Boolean used;

    // 优惠券使用时间
    private LocalDateTime useTime;

    // 优惠券获取时间
    private LocalDateTime receivedTime;

    // 优惠券获取方式
    private CouponAcquireApproach couponAcquireApproach;

}
